from flask import Flask, jsonify
from flask_cors import CORS

from util import util

app = Flask(__name__)
CORS(app)

@app.route('/api/subject', methods=['GET'])
def getSubject():
    rst = util.execute_query("select * from subject")
    return rst

if __name__ == '__main__':
    app.run(debug=True)